for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var childProcess = require('child_process');
module.exports = {
log: function(filepath, pretty, callback) {
callback
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
var dateformat = 'format:"%d/%m/%Y"';
// git log --date=format:"%d/%m/%Y" --pretty=format:"## %cd%n- %an <%ae>: %s (%H)" src/partials/atoms/link/index.html
var cmd = 'git log' +
(' --date='+dateformat) +
(pretty ? ' --pretty='+pretty : '') +
(filepath ? ' '+filepath : '');
return childProcess.execSync(cmd);
}
};
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.